package com.gzhu.knowledgeAdmin.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.gzhu.knowledgeAdmin.common.valid.AddGroup;
import com.gzhu.knowledgeAdmin.common.valid.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.*;
/**
 * 场景表
 * 
 * @author yangminggui
 * @email giaogiao@gmail.com
 * @date 2024-01-12 23:24:33
 */
@Data
@TableName("scene")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="scene对象", description="场景表")
public class Scene implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	@NotNull(message = "修改必须指定自增主键",groups = {UpdateGroup.class})
	@Null(message = "新增不能指定自增主键",groups = {AddGroup.class})
	@ApiModelProperty(value = "自增主键")
	private Integer id;

	@NotBlank(groups = {AddGroup.class})
    @TableField(value = "name")
	@ApiModelProperty(value = "场景名称")
	@Alias(value = "场景")
	private String name;

	@NotBlank(groups = {AddGroup.class})
    @TableField(value = "gsid")
	@ApiModelProperty(value = "公司id")
	private String gsid;

}
